package com.hardydou.framework.filestore;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author ：hardy
 * @description：文件存储配置
 * @date ：Created in 2020/6/15
 * @Copyright ：Hardydou.com
 */
@ConfigurationProperties(prefix = FileStoreConfig.PREFIX)
public class FileStoreConfig {


    public final static String PREFIX = "filestore";


    private String type;
    private String diskRoot;
    private String pathPattern;

    public void setType(String type) {
        this.type = type;
    }

    public void setDiskRoot(String diskRoot) {
        this.diskRoot = diskRoot;
    }

    public String getType() {
        return type;
    }

    public String getDiskRoot() {
        return diskRoot;
    }

    public String getPathPattern() {
        return pathPattern;
    }

    public void setPathPattern(String pathPattern) {
        this.pathPattern = pathPattern;
    }
}
